//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在canteen_yd.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"department":[],"xname":"","zao_c":"","wu_c":"","yd_date":""},
		editFormOptions: [{"key":"oa_depname","data":[],"title":"所属部门","required":true,"field":"department","type":"cascader"},
                               {"title":"姓名","required":true,"field":"xname"},
                               {"title":"早餐","required":true,"field":"zao_c","type":"switch"},
                               {"title":"午餐","required":true,"field":"wu_c","type":"switch"},
                               {"title":"预约就餐日期","required":true,"field":"yd_date","type":"date"}],
		searchFormFields: {"department":[],"xname":"","zao_c":"","wu_c":"","yd_date":""},
		searchFormOptions: [{"title":"早餐","field":"zao_c","type":"number"},{"title":"午餐","field":"wu_c","type":"number"},{"title":"预约就餐日期","field":"yd_date"},{"type":"group"},{"key":"oa_depname","data":[],"title":"所属部门","field":"department","type":"cascader"},{"title":"姓名","field":"xname","type":"like"}],
		columns: [{field:'department',title:'所属部门',type:'string',bind:{ key:'oa_depname',data:[]}},
                       {field:'xname',title:'姓名',type:'string',link:true},
                       {field:'zao_c',title:'早餐',type:'int'},
                       {field:'wu_c',title:'午餐',type:'int'},
                       {field:'yd_date',title:'预约就餐日期',type:'date'}],
		table: {
			key: 'canteen_yd_id',
			footer: "Foots",
			cnName: '就餐预约',
			name: 'canteen_yd',
			url: "/canteen_yd/",
			sortName: "department"
		}
	}
}
